from selenium import webdriver
import time
import os

driver = webdriver.Chrome()
url = os.path.join(os.path.abspath('html'), 'case.html')

driver.get(url)

print(driver.find_element_by_id('div1').is_displayed())
print(driver.find_element_by_id('div2').is_displayed())

input1 = driver.find_element_by_xpath('//input[@name="input1"]')

print(input1.is_enabled())

input2 = driver.find_element_by_xpath('//input[@name="input2"]')

print(input2.is_enabled())